package com.ruoyi.central.enums;

import com.baomidou.mybatisplus.annotation.IEnum;
import com.fasterxml.jackson.annotation.JsonValue;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.ruoyi.common.config.jackson.IEnumDeserializer;
import lombok.Getter;

/**
 * @Classname OperationTypeEnum
 * @Author: sunluquan
 * @Date: 2022/6/2 16:39
 * @Description TODO
 * 操作类型枚举
 */
@Getter
@JsonDeserialize(using = IEnumDeserializer.class)
public enum OperationTypeEnum implements IEnum<Integer> {

    AUTOMATIC_TYPE(1,"自动类型"),
    MANUAL_TYPE(2,"手动类型");

    @JsonValue
    private int value;
    private String description;

    OperationTypeEnum(int value, String description) {
        this.value = value;
        this.description = description;
    }
    @Override
    public Integer getValue() {
        return value;
    }

}
